package org.dormnet.dao.mapping;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.dormnet.dao.bean.Album;

public class AlbumMapping implements BeanMapping{

	public Object mapping(ResultSet resultSet) throws SQLException {
		Album album = new Album();
		album.setAlid(resultSet.getInt("alid"));
		album.setAlbumname(resultSet.getString("albumname"));
		album.setDescription(resultSet.getString("description"));
		album.setDormid(resultSet.getInt("dormid"));
		album.setIsdeleted(resultSet.getInt("isdeleted"));
		album.setSurface(resultSet.getString("surface"));
		return album;
	}

}
